package com.jhgsys.internal.accident.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jhgsys.internal.accident.entity.HazardExamineFile;
import com.jhgsys.internal.common.entity.QueryRequest;

import java.util.List;

/**
 *  Service接口
 *
 * @author zhangwei
 * @date 2024-08-22 13:43:29
 */
public interface IHazardExamineFileService extends IService<HazardExamineFile> {
    /**
     * 查询（分页）
     * @author zhangwei
     * @date 2024-08-22 13:43:29
     * @param request QueryRequest
     * @param hazardExamineFile hazardExamineFile
     * @return IPage<HazardExamineFile>
     */
    IPage<HazardExamineFile> findHazardExamineFilePage(QueryRequest request, HazardExamineFile hazardExamineFile);

    /**
     * 查询（所有）
     * @author zhangwei
     * @date 2024-08-22 13:43:29
     * @param hazardExamineFile hazardExamineFile
     * @return List<HazardExamineFile>
     */
    List<HazardExamineFile> findHazardExamineFileList(HazardExamineFile hazardExamineFile);

    /**
    * 根据ID查询
    * @author zhangwei
    * @date 2024-08-22 13:43:29
    * @param id
    * @return HazardExamineFile
    */
    HazardExamineFile findHazardExamineFileById(String id);

    /**
     * 新增
     * @author zhangwei
     * @date 2024-08-22 13:43:29
     * @param hazardExamineFile hazardExamineFile
     */
    void createHazardExamineFile(HazardExamineFile hazardExamineFile);

    /**
     * 修改
     * @author zhangwei
     * @date 2024-08-22 13:43:29
     * @param hazardExamineFile hazardExamineFile
     */
    void updateHazardExamineFile(HazardExamineFile hazardExamineFile);

    /**
     * 逻辑删除
     * @author zhangwei
     * @date 2024-08-22 13:43:29
     * @param hazardExamineFile hazardExamineFile
     * @param hazardExamineFileIds hazardExamineFileIds
     */
    void deleteHazardExamineFile(HazardExamineFile hazardExamineFile,String hazardExamineFileIds);

    /**
    * 物理删除
    * @author zhangwei
    * @date 2024-08-22 13:43:29
    * @param hazardExamineFileIds hazardExamineFileIds
    */
    void physicallyDeleteHazardExamineFile(String hazardExamineFileIds);

    /**
     * 根据安全检查记录id删除
     * @author admin
     * @date 2024-08-22 09:56:15
     * @param reportIds
     * @param fileType 文件类型;1：问题文件 2：整改文件
     */
    void deleteByExamineRecordIds(String examineRecordIds,String fileType);
}
